import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * Created by Nominal on 2018/4/20 0020.
 * 微博：@Mr丶Li_Anonym
 */
public class test {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder =new BCryptPasswordEncoder();
        String encodePwd=encoder.encode("root");
        System.out.println("加密后"+encodePwd);
    }
}
